package com.ouli.settings.text;

import com.ouli.crm.utils.DateTimeUtil;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Tset1 {
    public static void main(String[] args) {

        String expireTime = "2021-10-10 10:10:10";

//        Date date = new Date();
//        System.out.println(date);
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//        String str = sdf.format(date);
//        System.out.println(str);
        String currentTime = DateTimeUtil.getSysTime();

        int count = expireTime.compareTo(currentTime);
        System.out.println(count);

        String lockState = "0";
        if ("0".equals(lockState)){
            System.out.println("账号已经锁定");
        }
    }
}
